package com.tele.service.imps;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.tele.domain.Memory;
import com.tele.mapper.MemMapper;
import com.tele.service.ints.MemService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MemServiceImp extends ServiceImpl<MemMapper, Memory> implements MemService {

    @Override
    public int insertMemory(Memory memory) {
        return baseMapper.insert(memory);
    }

    @Override

    public List<Memory> getAllMemory() {
        return baseMapper.selectList(null);
    }

    @Override
    public int updateMemory(Memory memory) {
        return baseMapper.updateById(memory);
    }

    @Override
    public int delMemory(Memory memory) {
        return baseMapper.deleteById(memory);
    }

}
